home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / grafik / hpcd06 / hpcdtopp.man < prev    next >
Encoding:
Text File  |  1994-02-15  |  7.1 KB  |  218 lines

  1. ..TH hpcdtoppm 1 " 14 Jan 1994"
  2. ..IX hpcdtoppm
  3. ..SH NAME
  4. hpcdtoppm v0.6 beta - convert a Photo-CD file into a portable pixmap
  5. ..SH SYNOPSIS
  6. ..B hpcdtoppm
  7. [options] pcd-file [ppm-file]
  8. ..SH DESCRIPTION
  9. Decodes a Photo-CD Image file or Overview file.
  10. Image files you can find on the Photo-CD in photo_cd/images, they are named
  11. as "imgnnnn.pcd", where nnnn is a 4-digit-number. The Overview file is at
  12. photo_cd/overview.pcd . If there is no output filename given, output will be
  13. printed to stdout. hpcdtoppm stands for "Hadmut's pcdtoppm" to make it
  14. distinguishable in case someone else is building the same thing and
  15. calling it pcdtoppm. Call hpcdtoppm without arguments to see the 
  16. defaults values. If pcd-file is "-", the Photo-CD file is read from
  17. stdin.
  18. ..IX GIF
  19. ..SH OPTIONS
  20. ..TP
  21. ..B -x
  22. Overskip Mode. Works on Base/16, Base/4, Base and 4Base. In Photo-CD
  23. images the luma channel is stored in full resolution, the two chroma
  24. channels are stored in half resolution only and have to be interpolated.
  25. In the Overskip Mode the chroma channels of the next higher resolution are
  26. taken instead of interpolating. To see the difference, generate one ppm with
  27. and one ppm without this flag. Use pnmarith to generate the difference image
  28. of these two images. Call ppmhist for this difference or show it with xv
  29. (push the HistEq button in the color editor).
  30. ..TP
  31. ..B -s
  32. Apply simple sharpness-operator on the Luma-channel.
  33. ..TP
  34. ..B -d
  35. Do not show the complete image, but only the decompressed difference.
  36. It works only on the 4Base and the 16Base resolution. It does not
  37. have any deeper sense, but it was simple to implement and it shows what
  38. causes different sizes of image files.
  39. ..TP
  40. ..B -i
  41. Give some information from the fileheader to stderr. It works only for 
  42. Image files. (It is not working correctly, just printing some strings.)
  43. ..TP
  44. ..B -m
  45. Show the phases of decoding to stderr.
  46. ..TP
  47. ..B -crop
  48. Try to cut off the black frame which is sometimes scanned
  49. at the image borders. The image size shrinks.
  50. ..TP
  51. ..B -pos
  52. Print the file relative start position of the data for
  53. the current resolution.
  54. ..TP
  55. ..B -rep
  56. Try to jump over reading errors in Huffman code. 
  57. ..TP
  58. ..B -n
  59. Don't rotate the image.
  60. ..TP
  61. ..B -r
  62. Rotate the picture clockwise for portraits.
  63. ..TP
  64. ..B -l
  65. Rotate the picture counter-clockwise for portraits.
  66. ..TP
  67. ..B -a
  68. Try to find out the image orientation byself. This doesn't work
  69. for overview files yet. It is very experimental and depends on
  70. one byte. Please tell me if it doesn't work.
  71. ..TP
  72. ..B -vert
  73. Vertical flip.
  74. ..TP
  75. ..B -hori
  76. Horizontal flip.
  77. ..TP
  78. ..B -S h v
  79. Cut out subrectangle with boundaries h (longer side of the image) and
  80. v (shorter side). h and v are of the form a-b ( cut from a to b ) or
  81. a+b ( offset a, length b). a and b are integer (pixels) or float 
  82. [0.0 ... 1.0] relative to the length of the side.
  83. ..TP
  84. ..B -ppm
  85. Write rgb image in ppm-format.
  86. ..TP
  87. ..B -pgm
  88. Write grayscale image in pgm-format.
  89. ..TP
  90. ..B -ycc
  91. Write ycc image in ppm-format.
  92. ..TP
  93. ..B -ps
  94. Write rgb image in postscript.
  95. ..TP
  96. ..B -eps
  97. Write rgb image in encapsulated postscript.
  98. ..TP
  99. ..B -psg
  100. Write grayscale image in postscript.
  101. ..TP
  102. ..B -epsg
  103. Write grayscale image in encapsulated postscript.
  104. ..TP
  105. ..B -psd
  106. Write a Floyd-Steinberg dithered image in postscript.
  107. See the Postscript section below.
  108. ..TP
  109. ..B -epsd
  110. Write a Floyd-Steinberg dithered image in encapsulated postscript.
  111. See the Postscript section below.
  112. ..TP
  113. ..B -pl f
  114. Set left position of Postscript image to f.
  115. ..TP
  116. ..B -pb f
  117. Set bottom position of Postscript image to f.
  118. ..TP
  119. ..B -pw f
  120. Set width of Postscript image to f.
  121. ..TP
  122. ..B -ph f
  123. Set height of Postscript image to f.
  124. ..TP
  125. ..B -dpi f
  126. Set printer resolution for dithered postscript images. 
  127. See the Postscript section below.
  128. ..TP
  129. ..B -fak f
  130. Sets a scaling factor for dithered postscript images. 
  131. See the Postscript section below.
  132. ..TP
  133. ..B -c0
  134. Don't correct the image.
  135. ..TP
  136. ..B -c-
  137. Do a correction (darker). Hardware and taste dependend.
  138. ..TP
  139. ..B -c+
  140. Do a correction (brighter). Hardware and taste dependend.
  141. ..TP
  142. ..B -1 | -Base/16 | -128x192
  143. Extract the Base/16 size picture (size 128x192 pixels). Note that you
  144. can only give one size option.
  145. ..TP
  146. ..B -2 | -Base/4 | -256x384
  147. Extract the Base/4 size picture.
  148. ..TP
  149. ..B -3 | -Base | -512x768
  150. Extract the Base size picture.
  151. ..TP
  152. ..B -4 | -4Base | -1024x1536
  153. Extract the 4Base size picture.
  154. ..TP
  155. ..B -5 | -16Base | -2048x3072
  156. Extract the 16Base size picture.
  157. ..TP
  158. ..B -6 path
  159. Extract the 64Base size picture, path is the name of the 64Base directory
  160. of the image, e.g. /cdrom/photo_cd/ipe/img0001/64base .
  161. ..TP
  162. ..B -0 | -Overview | -O
  163. Extract all pictures from an Overview file. A ppmfilename must be given. If the
  164. given name is "foo", the files are named "foonnnn", where nnnn is a 4-digit number.
  165. Since they are stored in Base/16 format, they are extracted in this format.
  166. ..TP
  167. ..B -C d s
  168. Extract all pictures from an Overview file. A ppmfilename must be given. If the
  169. given name is "foo", the files are named "foonnnn", where nnnn is a 4-digit number.
  170. Since they are stored in Base/16 format, they are extracted in this format. s is one
  171. of "n", "l" and "r" and determines the orientation of the contact sheet image.
  172.  
  173.  
  174. ..PP
  175.  
  176. ..SH POSTSCRIPT OUTPUT
  177.  
  178. For postscript output ( ps, eps, psg, epsg, psd, epsg ) you
  179. can choose parameters for the resolution and placement on the paper.
  180. The default values are used if none of the following options is given.
  181.  
  182. The position of the image within the paper (down left corner) is changed
  183. with the -pl and -pb option for all resolutions. The unit is 1/72 inch.
  184.  
  185. For color and grayscale postscript you can change the image size with
  186. the -pw and -ph option (1/72 inch). Every image pixel is mapped onto one
  187. postscript pixel.
  188.  
  189. For dithered postscript (-psd and -epsd) there are three options,
  190. the image size (-pw and -ph), the printer resolution (-dpi) and
  191. a scaling factor (-fak). Since these values depend from each other,
  192. you can not give more than two of these options. You should play with
  193. these options to get the results you like. You will get pretty images
  194. if you use the -dpi and the -pw/-ph options together. Even if you
  195. use the default values, the result will not be the same as without
  196. options. 
  197.  
  198.  
  199. ..PP
  200.  
  201. ..SH BUGS
  202. hpcdtoppm seems to ignore the read protection. :-)
  203. The informations i have are quite vague and this program
  204. was developed by staring at the hex-dumps and the famous 
  205. trial-and-error-method. If anything
  206. doesn't work, please send me a report and perhaps you could try to
  207. find out, why it doesn't work.
  208. ..SH "SEE ALSO"
  209. ppm(5), ppmquant(1), ppmtopgm(1), ppmhist(1), pnmarith(1), ppmtorgb3(1), xv(1)
  210. ..SH AUTHOR
  211. Copyright (c) 1992, 1993, 1994 by Hadmut Danisch (danisch@ira.uka.de).
  212. Permission to use and distribute this software and its
  213. documentation for noncommercial use and without fee is hereby granted,
  214. provided that the above copyright notice appear in all copies and that
  215. both that copyright notice and this permission notice appear in
  216. supporting documentation. It is not allowed to sell this software in 
  217. any way. This software is not public domain.
  218.